gtk4.git
7 years agoMerge branch 'zbrown/type-info' into 'master'
Matthias Clasen [Wed, 3 Apr 2019 23:14:38 +0000 (23:14 +0000)]
Merge branch 'zbrown/type-info' into 'master'

inspector: Type info for misc pane

See merge request GNOME/gtk!712

7 years agoinspector: Type info for misc pane
Zander Brown [Wed, 3 Apr 2019 22:50:24 +0000 (23:50 +0100)]
inspector: Type info for misc pane

Replaces the class hierarchy page with a button/popover on the misc page

7 years agoUpdate POTFILES.in
Piotr Drąg [Wed, 3 Apr 2019 17:03:36 +0000 (19:03 +0200)]
Update POTFILES.in

7 years agoFix teststack
Matthias Clasen [Wed, 3 Apr 2019 15:10:10 +0000 (15:10 +0000)]
Fix teststack

This testcase wasn't updated to new GtkStack apis.

7 years agoMerge branch 'wip/carlosg/drop-search-handle-event' into 'master'
Matthias Clasen [Wed, 3 Apr 2019 13:28:58 +0000 (13:28 +0000)]
Merge branch 'wip/carlosg/drop-search-handle-event' into 'master'

Search improvements

See merge request GNOME/gtk!710

7 years agoMerge branch 'wip/carlosg/paned-cursor' into 'master'
Matthias Clasen [Wed, 3 Apr 2019 13:12:01 +0000 (13:12 +0000)]
Merge branch 'wip/carlosg/paned-cursor' into 'master'

paned: Set cursor on gizmo widget

See merge request GNOME/gtk!711

7 years agoMerge branch 'patch-1' into 'master'
Matthias Clasen [Wed, 3 Apr 2019 12:16:01 +0000 (12:16 +0000)]
Merge branch 'patch-1' into 'master'

Update zh_CN.po

See merge request GNOME/gtk!709

7 years agopaned: Set cursor on gizmo widget
Carlos Garnacho [Wed, 3 Apr 2019 11:26:40 +0000 (13:26 +0200)]
paned: Set cursor on gizmo widget

We may avoid setting it on the paned widget depending on the pointer
position altogether, since the handle is now a widget. Also is more
likely to be correct as the implicitly grabbed widget will probably
be that one.

Fixes the paned losing the resize cursor after button press.

7 years agogtk: Drop gtk_search_[entry|bar]_handle_event()
Carlos Garnacho [Wed, 3 Apr 2019 11:21:51 +0000 (13:21 +0200)]
gtk: Drop gtk_search_[entry|bar]_handle_event()

This is now unused, and unrecommended.

7 years agoicon-browser: Drop usage of gtk_search_bar_handle_event()
Carlos Garnacho [Wed, 3 Apr 2019 11:18:37 +0000 (13:18 +0200)]
icon-browser: Drop usage of gtk_search_bar_handle_event()

Make it capture key events from the toplevel.

7 years agoshortcutswindow: Drop usage of gtk_search_bar_handle_event()
Carlos Garnacho [Wed, 3 Apr 2019 11:17:54 +0000 (13:17 +0200)]
shortcutswindow: Drop usage of gtk_search_bar_handle_event()

Make it capture key events from the toplevel.

7 years agofilechooserwidget: Drop usage of gtk_search_entry_handle_event()
Carlos Garnacho [Wed, 3 Apr 2019 11:16:49 +0000 (13:16 +0200)]
filechooserwidget: Drop usage of gtk_search_entry_handle_event()

Just use gtk_event_controller_key_forward() to let know the search
entry of the Esc key being pressed.

7 years agoinspector: Fix prop-list search
Carlos Garnacho [Wed, 3 Apr 2019 11:11:44 +0000 (13:11 +0200)]
inspector: Fix prop-list search

Instead of handle_event(), use set_key_capture_widget().

Also, use the fact that we now propagate key events throughout the
stage, and connect to the GtkInspectorPropList instead of the toplevel.
We only want the search bar to be active while that widget is mapped
and able to receive events.

And also, handle the "search bar" visibility on ::search-started.

7 years agoUpdate zh_CN.po
aerowolf [Wed, 3 Apr 2019 11:22:55 +0000 (11:22 +0000)]
Update zh_CN.po

7 years agosearchentry: Add ::search-started signal
Carlos Garnacho [Wed, 3 Apr 2019 11:08:53 +0000 (13:08 +0200)]
searchentry: Add ::search-started signal

Users of search entries usually handled visibility (when initially hidden)
by checking the return value of gtk_search_entry_handle_event(). This does
not pan out with gtk_search_entry_set_key_capture_widget() since the return
value is not directly seen by the caller.

Add a ::search-started signal to cater for it, which gets emitted when the
search entry went from empty to non-empty.

7 years agotreeview: Fix variable typo
Carlos Garnacho [Wed, 3 Apr 2019 11:07:06 +0000 (13:07 +0200)]
treeview: Fix variable typo

We actually want search_entry there, not search_window which is the
O-R window in the non-custom case.

7 years agodocs: Fix typo in the migration guide
Emmanuele Bassi [Wed, 3 Apr 2019 10:27:18 +0000 (11:27 +0100)]
docs: Fix typo in the migration guide

7 years agoMerge branch 'inspector-tweaks' into 'master'
Matthias Clasen [Tue, 2 Apr 2019 23:51:22 +0000 (23:51 +0000)]
Merge branch 'inspector-tweaks' into 'master'

Inspector tweaks

See merge request GNOME/gtk!707

7 years agoinspector: Rename a few pages
Matthias Clasen [Tue, 2 Apr 2019 22:00:46 +0000 (22:00 +0000)]
inspector: Rename a few pages

"Global" and "Visual" are not very good names for
the content of these pages. Rename them to
"Information and "Settings".

7 years agoinspector: Manage visibility of stack pages
Matthias Clasen [Tue, 2 Apr 2019 23:24:57 +0000 (23:24 +0000)]
inspector: Manage visibility of stack pages

The hand-rolled stack combo we were using before
was looking at the visibility of the page itself
to show or hide items. Other stack switchers
expect us to use the GtkStackPage::visible
property for this.

7 years agoinspector: Redo the object page switcher
Matthias Clasen [Tue, 2 Apr 2019 23:07:51 +0000 (23:07 +0000)]
inspector: Redo the object page switcher

The combobox for page switching was not very good.
Instead, do a sidebar that can be hidden.

7 years agoinspector: Drop the child property page
Matthias Clasen [Tue, 2 Apr 2019 21:56:26 +0000 (21:56 +0000)]
inspector: Drop the child property page

Child properties are on the way out.

7 years agoinspector: Drop the class hierarchy page
Matthias Clasen [Tue, 2 Apr 2019 21:50:09 +0000 (21:50 +0000)]
inspector: Drop the class hierarchy page

This was just  not useful enough to keep around.

7 years agoinspector: Drop the css selector page
Matthias Clasen [Tue, 2 Apr 2019 21:47:02 +0000 (21:47 +0000)]
inspector: Drop the css selector page

This was just not useful enough to keep around.

7 years agoinspector: Drop the signals page
Matthias Clasen [Tue, 2 Apr 2019 21:39:47 +0000 (21:39 +0000)]
inspector: Drop the signals page

This was just not useful enough to keep around.

7 years agogtk-demo: Don't expand tabs
Matthias Clasen [Tue, 2 Apr 2019 21:32:14 +0000 (21:32 +0000)]
gtk-demo: Don't expand tabs

It is a little irritating to see super-wide
tabs in demos which have just one extra file,
such as "Fixed layout".

7 years agoinspector: Properly clean up
Matthias Clasen [Tue, 2 Apr 2019 21:19:50 +0000 (21:19 +0000)]
inspector: Properly clean up

I got a crash in inspector code when I hit
cancel in the confirmation dialog for it.

7 years agoUpdate gtk-doc types file for GTK 4
Emmanuele Bassi [Tue, 2 Apr 2019 20:43:34 +0000 (21:43 +0100)]
Update gtk-doc types file for GTK 4

We're missing newly added types, and listing removed ones.

7 years agoMerge branch 'wip/ebassi/fixed-demo' into 'master'
Matthias Clasen [Tue, 2 Apr 2019 20:07:16 +0000 (20:07 +0000)]
Merge branch 'wip/ebassi/fixed-demo' into 'master'

Add GtkFixed demo

See merge request GNOME/gtk!706

7 years agoMerge branch 'file-conflict2' into 'master'
Benjamin Otte [Tue, 2 Apr 2019 20:05:12 +0000 (20:05 +0000)]
Merge branch 'file-conflict2' into 'master'

Rename all settings schemas to avoid conflict

See merge request GNOME/gtk!705

7 years agoAdd GtkFixed demo
Emmanuele Bassi [Tue, 2 Apr 2019 19:49:35 +0000 (20:49 +0100)]
Add GtkFixed demo

This demo has everything:

 - a GtkFixed inside another GtkFixed
 - a cube made out of GtkFrame widgets
 - an example of 3D transformations

And what's there, in the window once I launch it? The GTK logo made of
widgets.

7 years agoRename all settings schemas to avoid conflict
Matthias Clasen [Tue, 2 Apr 2019 19:22:48 +0000 (19:22 +0000)]
Rename all settings schemas to avoid conflict

Rename all our settings schemas to the org.gtk.gtk4
prefix to avoid conflicting with the gtk3 schemas.

7 years agoMerge branch 'async-api' into 'master'
Matthias Clasen [Tue, 2 Apr 2019 15:45:30 +0000 (15:45 +0000)]
Merge branch 'async-api' into 'master'

Small async api fixes

See merge request GNOME/gtk!701

7 years agoMerge branch 'adwaita-selected-row-switch-fix-master' into 'master'
Matthias Clasen [Tue, 2 Apr 2019 15:33:24 +0000 (15:33 +0000)]
Merge branch 'adwaita-selected-row-switch-fix-master' into 'master'

Adwaita: Fix switch slider border on selected row

Closes #1802

See merge request GNOME/gtk!704

7 years agoMerge branch 'wip/ebassi/fixed-layout-v2' into 'master'
Matthias Clasen [Tue, 2 Apr 2019 15:27:25 +0000 (15:27 +0000)]
Merge branch 'wip/ebassi/fixed-layout-v2' into 'master'

Drop GtkLayout and improve GtkFixed

See merge request GNOME/gtk!702

7 years agoAdwaita: Fix switch slider border on selected row
Alex Monday [Tue, 2 Apr 2019 15:12:56 +0000 (20:12 +0500)]
Adwaita: Fix switch slider border on selected row

Closes https://gitlab.gnome.org/GNOME/gtk/issues/1802

7 years agogdk: Change some async dnd api
Matthias Clasen [Tue, 2 Apr 2019 11:38:52 +0000 (11:38 +0000)]
gdk: Change some async dnd api

The pattern we generally follow is to put the
async result right after the source object, in
finish functions. Do this for gdk_drop_read_finish.

7 years agogdk: Change some async clipboard api
Matthias Clasen [Tue, 2 Apr 2019 11:37:54 +0000 (11:37 +0000)]
gdk: Change some async clipboard api

The pattern we generally follow is to put the
async result right after the source object, in
finish functions. Do this for gdk_clipboard_read_finish.

7 years agodocs: Mention GtkLayout's removal in the migration guide
Emmanuele Bassi [Tue, 2 Apr 2019 15:00:05 +0000 (16:00 +0100)]
docs: Mention GtkLayout's removal in the migration guide

7 years agoAdd API to access child transformations to GtkFixed
Emmanuele Bassi [Tue, 2 Apr 2019 14:48:46 +0000 (15:48 +0100)]
Add API to access child transformations to GtkFixed

This is mostly convenience API around GtkFixedLayoutChild, but it should
push people towards using transformations with GtkFixed instead of just
using fixed positioning.

7 years agoRemove GtkLayout
Emmanuele Bassi [Tue, 2 Apr 2019 14:25:02 +0000 (15:25 +0100)]
Remove GtkLayout

The need of a specialised fixed layout container that can be placed into
a GtkScrolledWindow ceased to exist once GtkScrolledWindow gained the
ability to automatically interpose a GtkViewport when adding a child
that does not implement GtkScrollable.

All the other justifications that led to the existence of GtkLayout as a
separate widget from GtkFixed have been largely made irrelevant in the
20 years since its inception.

7 years agoAdd overflow:hidden to GtkFixed
Emmanuele Bassi [Mon, 1 Apr 2019 17:11:19 +0000 (18:11 +0100)]
Add overflow:hidden to GtkFixed

This allows GtkFixed to clip children that are outside its allocation.

7 years agoMerge branch 'appnames' into 'master'
Matthias Clasen [Tue, 2 Apr 2019 00:54:11 +0000 (00:54 +0000)]
Merge branch 'appnames' into 'master'

Rename apps for uniqueness

See merge request GNOME/gtk!699

7 years agoAdd a flatpak manifest for org.gtk.IconBrowser4
Matthias Clasen [Tue, 2 Apr 2019 00:31:17 +0000 (00:31 +0000)]
Add a flatpak manifest for org.gtk.IconBrowser4

And build it in ci.

7 years agoflatpaks: Drop dconf permissions
Matthias Clasen [Tue, 2 Apr 2019 00:28:30 +0000 (00:28 +0000)]
flatpaks: Drop dconf permissions

We are building against the 3.32 sdk, which has
a new-enough glib to default to the keyfile
settings backend.

Also, use fallback-x11, so we prefer Wayland.

7 years agoicon-browser: Rename to org.gtk.IconBrowser4
Matthias Clasen [Tue, 2 Apr 2019 00:24:12 +0000 (00:24 +0000)]
icon-browser: Rename to org.gtk.IconBrowser4

7 years agowidget-factory: Rename to org.gtk.WidgetFactory4
Matthias Clasen [Mon, 1 Apr 2019 23:58:30 +0000 (23:58 +0000)]
widget-factory: Rename to org.gtk.WidgetFactory4

7 years agogtk-demo: Rename to org.gtk.Demo4
Matthias Clasen [Mon, 1 Apr 2019 22:49:09 +0000 (18:49 -0400)]
gtk-demo: Rename to org.gtk.Demo4

7 years agoRename debug settings to org.gtk.Settings.Debug4
Matthias Clasen [Mon, 1 Apr 2019 22:55:26 +0000 (18:55 -0400)]
Rename debug settings to org.gtk.Settings.Debug4

This gives us the freedom to make changes without
interfering with GTK3.

7 years agopost-install: Use gtk4-update-icon-cache
Matthias Clasen [Tue, 2 Apr 2019 00:20:30 +0000 (00:20 +0000)]
post-install: Use gtk4-update-icon-cache

I was building GTK in a minimal container without
GTK3 installed, and this caused install to fail.
We should use the tool that we just installed.

7 years agoFix location on renamed files
Emmanuele Bassi [Mon, 1 Apr 2019 12:52:27 +0000 (13:52 +0100)]
Fix location on renamed files

Commit 4152e14e32b30cf4d067d960fa9772c85a00607a renamed a bunch of
files, but did not fix the meson.build file that referenced them.

7 years agoNamespace some auxiliary files
Matthias Clasen [Mon, 1 Apr 2019 12:30:39 +0000 (08:30 -0400)]
Namespace some auxiliary files

We install a few helper files for the ui file
format. Namespace these, to avoid conflict with
the same files in GTK3.

7 years agoDrop gtkbuilder.rnc
Matthias Clasen [Mon, 1 Apr 2019 12:23:29 +0000 (08:23 -0400)]
Drop gtkbuilder.rnc

This is just a leftover file in git.

7 years agoMerge branch 'reftests.fixes.msvc' into 'master'
Matthias Clasen [Mon, 1 Apr 2019 05:42:05 +0000 (05:42 +0000)]
Merge branch 'reftests.fixes.msvc' into 'master'

test/reftests: Fix build on Visual Studio

See merge request GNOME/gtk!692

7 years agoicon-browser: Fix name alignment
Matthias Clasen [Mon, 1 Apr 2019 04:27:58 +0000 (00:27 -0400)]
icon-browser: Fix name alignment

The icon names were left-aligned, not centered
under the icon.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/18
7 years agotest/reftests: Fix build on Visual Studio
Chun-wei Fan [Mon, 1 Apr 2019 04:06:25 +0000 (12:06 +0800)]
test/reftests: Fix build on Visual Studio

As we are building the gtkreftestprivate and reftest test libraries as
DLLs, we need to export the symbols in there so that things will link.

Decorate the symbols with G_MODULE_EXPORT for this purpose.

7 years agodocs: Remove mention of passwords from broadwayd(1)
Matthias Clasen [Mon, 1 Apr 2019 04:11:31 +0000 (00:11 -0400)]
docs: Remove mention of passwords from broadwayd(1)

This functionality does not exist.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1697
7 years agoFix filechooser search
Matthias Clasen [Mon, 1 Apr 2019 03:06:42 +0000 (23:06 -0400)]
Fix filechooser search

This makes the search entry show up again
when I type. There is still some misbehavior
where the entry loses focus again, and Escape
does not work to exit search.

7 years agoFix menuitem hover
Matthias Clasen [Mon, 1 Apr 2019 01:53:55 +0000 (21:53 -0400)]
Fix menuitem hover

We need to pay attention to details
of enter and leave events.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1795
7 years agoFix up the border/background-color removal
Matthias Clasen [Mon, 1 Apr 2019 00:43:19 +0000 (20:43 -0400)]
Fix up the border/background-color removal

I overlooked one level of indirection here. Oops.

7 years agotooltips: Don't use a cursor_size of 0
Matthias Clasen [Sun, 31 Mar 2019 20:16:01 +0000 (16:16 -0400)]
tooltips: Don't use a cursor_size of 0

This leads to flickering tooltips.

7 years agoMerge branch 'deprecations' into 'master'
Matthias Clasen [Sun, 31 Mar 2019 19:56:05 +0000 (19:56 +0000)]
Merge branch 'deprecations' into 'master'

Drop deprecated style context apis

See merge request GNOME/gtk!691

7 years agoDrop deprecated style context api
Matthias Clasen [Sun, 31 Mar 2019 19:04:39 +0000 (15:04 -0400)]
Drop deprecated style context api

7 years agoStop using deprecated style context api
Matthias Clasen [Sun, 31 Mar 2019 19:03:57 +0000 (15:03 -0400)]
Stop using deprecated style context api

Use the non-deprecated one it wraps, instead.
Yes, this is cheating...

7 years agoMerge branch 'fix-event-forwarding' into 'master'
Matthias Clasen [Sun, 31 Mar 2019 18:27:24 +0000 (18:27 +0000)]
Merge branch 'fix-event-forwarding' into 'master'

Trigger bindings when forwarding key events

Closes #1793

See merge request GNOME/gtk!690

7 years agotextview: Fix comparison thinko
Benjamin Otte [Sun, 31 Mar 2019 18:04:02 +0000 (20:04 +0200)]
textview: Fix comparison thinko

Apparently, we have no test that checks for actually drawing text, so
the thinko that caused all text to disappear in
4b07d2815375856823532b2238d87455c3be2f7c went unnoticed.

7 years agoTrigger bindings when forwarding key events
Matthias Clasen [Sun, 31 Mar 2019 18:04:35 +0000 (14:04 -0400)]
Trigger bindings when forwarding key events

This broke backspace handling in entries when an entry
completion is present.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1793
7 years agotext: Handle 'inverted' selections
Matthias Clasen [Sun, 31 Mar 2019 16:36:09 +0000 (12:36 -0400)]
text: Handle 'inverted' selections

We must handle selection_bound > cursor in
various places. This was lost in the big
entry refactoring.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1792
7 years agobuild: Don't use 'continue'
Timm Bäder [Sun, 31 Mar 2019 04:37:10 +0000 (06:37 +0200)]
build: Don't use 'continue'

It does not exist in meson 0.48 apparently.

7 years agogl renderer: Apply transform only for final texture drawing
Timm Bäder [Sun, 31 Mar 2019 04:16:16 +0000 (06:16 +0200)]
gl renderer: Apply transform only for final texture drawing

We don't want the new transform while drawing things on a texture.
Instead, only apply the new transform matrix when adding the final
texture drawing ops.

This fixes the stack cube rotation transition to at least look somewhat
better.

7 years agogl renderer: Add debug code to dump framebuffer
Timm Bäder [Sun, 31 Mar 2019 04:14:41 +0000 (06:14 +0200)]
gl renderer: Add debug code to dump framebuffer

This way we can specify it on specific add_offscreen_ops callsites.

7 years agomediastream: fix documentation
Mohammed Sadiq [Sun, 31 Mar 2019 03:07:45 +0000 (08:37 +0530)]
mediastream: fix documentation

7 years agoWidget: Don't refer to the old get_preferred_*()
Daniel Boles [Sat, 30 Mar 2019 19:47:50 +0000 (19:47 +0000)]
Widget: Don't refer to the old get_preferred_*()

measure() replaced get_preferred_height() and get_preferred_width().

7 years agoUpdate Polish translation
Piotr Drąg [Sat, 30 Mar 2019 13:54:20 +0000 (14:54 +0100)]
Update Polish translation

7 years agoUpdate POTFILES.in
Piotr Drąg [Sat, 30 Mar 2019 13:39:18 +0000 (14:39 +0100)]
Update POTFILES.in

7 years agoMerge branch 'wip/ebassi/align-test' into 'master'
Matthias Clasen [Fri, 29 Mar 2019 22:50:10 +0000 (22:50 +0000)]
Merge branch 'wip/ebassi/align-test' into 'master'

Remove aligned allocation checks

See merge request GNOME/gtk!596

7 years agoMerge branch 'remove-deprecations' into 'master'
Matthias Clasen [Fri, 29 Mar 2019 16:23:53 +0000 (16:23 +0000)]
Merge branch 'remove-deprecations' into 'master'

Remove gdk_device_grab/ungrab from public api

See merge request GNOME/gtk!682

7 years agoDon't mark GDK_SURFACE_STATE_TILED as deprecated
Matthias Clasen [Fri, 29 Mar 2019 15:55:58 +0000 (11:55 -0400)]
Don't mark GDK_SURFACE_STATE_TILED as deprecated

I've come to the conclusion that we should keep
this state, since not all backends support per-edge
information. Updated the docs to explain how the
tiled state relates to the per-edge states.

7 years agoAdd a missing include
Matthias Clasen [Fri, 29 Mar 2019 15:55:42 +0000 (11:55 -0400)]
Add a missing include

7 years agoRemove gdk_device_grab/ungrab from public api
Matthias Clasen [Fri, 29 Mar 2019 15:31:13 +0000 (11:31 -0400)]
Remove gdk_device_grab/ungrab from public api

They are still used internally in gdk, but we no
longer offer them as public api.

7 years agorevealer: Add a missing break
Matthias Clasen [Fri, 29 Mar 2019 14:57:51 +0000 (10:57 -0400)]
revealer: Add a missing break

This was showing up as the slide-down transition
being broken.

Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1790
7 years agotestrevealer: Cover the new transitions
Matthias Clasen [Fri, 29 Mar 2019 14:51:00 +0000 (10:51 -0400)]
testrevealer: Cover the new transitions

Add tests for all the swing transitions.

7 years agoMerge branch 'build-warning' into 'master'
Emmanuele Bassi [Fri, 29 Mar 2019 14:47:28 +0000 (14:47 +0000)]
Merge branch 'build-warning' into 'master'

build: Do not use `install` argument for configure_file()

See merge request GNOME/gtk!681

7 years agobuild: Do not use `install` argument for configure_file()
Emmanuele Bassi [Fri, 29 Mar 2019 13:59:58 +0000 (13:59 +0000)]
build: Do not use `install` argument for configure_file()

The `install` argument for configure_file() was introduced in Meson
0.50, and was ignored in earlier versions.

Since we're still using Meson 0.48 as a baseline, and since it doesn't
cost us nothing to use a conditional in the only place where we used the
`install` argument, let's drop it. This avoids a warning in newer
releases of Meson.

7 years agoMerge branch 'wip/alexl/broadway7' into 'master'
Alexander Larsson [Fri, 29 Mar 2019 14:28:29 +0000 (14:28 +0000)]
Merge branch 'wip/alexl/broadway7' into 'master'

Even more broadway updates

See merge request GNOME/gtk!680

7 years agoMerge branch 'cube-spin' into 'master'
Matthias Clasen [Fri, 29 Mar 2019 14:23:45 +0000 (14:23 +0000)]
Merge branch 'cube-spin' into 'master'

stack: Add a cube spin transition

See merge request GNOME/gtk!679

7 years agostack: Add a cube spin transition
Benjamin Otte [Tue, 5 Mar 2019 19:44:45 +0000 (20:44 +0100)]
stack: Add a cube spin transition

Add a transition to GtkStack that pretends pages
are the sides or a cube, and switch them by
rotating the cube.

Use this transition in widget-factory.

7 years agobroadway: Optionally support data: uris instead of blobs
Alexander Larsson [Fri, 29 Mar 2019 12:18:17 +0000 (13:18 +0100)]
broadway: Optionally support data: uris instead of blobs

This is nice when you want to make a "screenshot" by using save-as.
Its not going to perform as well though, so you have to enable it
by adding ?datauri to the url

7 years agobroadway: Report some level of frame timings
Alexander Larsson [Fri, 29 Mar 2019 11:31:42 +0000 (12:31 +0100)]
broadway: Report some level of frame timings

This is not ideal because we report the time of a full roundtrip, rather
than the presentation time, but its better than nothing, and i'm not sure
how the browser time should be reconciled.

7 years agobroadway: Change events and ops enums to straight ints
Alexander Larsson [Fri, 29 Mar 2019 10:44:46 +0000 (11:44 +0100)]
broadway: Change events and ops enums to straight ints

7 years agobroadway: More multi-display fixes
Alexander Larsson [Fri, 29 Mar 2019 10:13:24 +0000 (11:13 +0100)]
broadway: More multi-display fixes

When doing idle flushing, do so per display rather than a global
and some find_display hack.

7 years agobroadway: Add warning for unexpected roundtrip delays
Alexander Larsson [Fri, 29 Mar 2019 10:07:21 +0000 (11:07 +0100)]
broadway: Add warning for unexpected roundtrip delays

7 years agobroadway: Keep track of surface owner and only send input to that client
Alexander Larsson [Fri, 29 Mar 2019 10:07:04 +0000 (11:07 +0100)]
broadway: Keep track of surface owner and only send input to that client

7 years agobroadway: Fix handling of input with multiple in-process GdkDisplays
Alexander Larsson [Fri, 29 Mar 2019 10:03:38 +0000 (11:03 +0100)]
broadway: Fix handling of input with multiple in-process GdkDisplays

We need each instance to only forward input to the right display.
This make the inspector work better.

7 years agobroadway: Add minor comment
Alexander Larsson [Fri, 29 Mar 2019 08:26:13 +0000 (09:26 +0100)]
broadway: Add minor comment

7 years agobroadway: Move gsk files to a subdirectory
Alexander Larsson [Fri, 29 Mar 2019 08:09:54 +0000 (09:09 +0100)]
broadway: Move gsk files to a subdirectory

7 years agobroadway: Optimize color matrix + texture nodes to pre-colorized texture
Alexander Larsson [Thu, 28 Mar 2019 22:31:36 +0000 (23:31 +0100)]
broadway: Optimize color matrix + texture nodes to pre-colorized texture

7 years agobroadway: Support patching nodes for textures and transforms
Alexander Larsson [Thu, 28 Mar 2019 19:22:44 +0000 (20:22 +0100)]
broadway: Support patching nodes for textures and transforms

7 years agobroadway: Reintroduce smarter diffing
Alexander Larsson [Thu, 28 Mar 2019 18:17:01 +0000 (19:17 +0100)]
broadway: Reintroduce smarter diffing

We now send very minimal diff operations.

7 years agobroadway: Initial restructuring of node tree diffing
Alexander Larsson [Thu, 28 Mar 2019 15:03:42 +0000 (16:03 +0100)]
broadway: Initial restructuring of node tree diffing

This goes back to a very naive diff, but that reuses nodes from
previous frames using the node id. This will be a bettter base
to start from.